package groovyx.twitter
/**
 * Created by IntelliJ IDEA.
 * User: alleon
 * Date: May 6, 2008
 * Time: 1:59:39 PM
 * To change this template use File | Settings | File Templates.
 */
class QueryStringTest extends GroovyTestCase {
    def queryString

    void setUp(){
        queryString = new QueryString()
    }

    void testConstructor(){
        assertNotNull queryString
    }

    void testAdd(){
        queryString.add("name", "tog")
        assertEquals queryString.params.size(), 1
    }

    void testToString(){
        queryString.add("name", "tog")
        assertEquals queryString.toString(), "name=tog"
    }
}
